package com.qiche.service;

import com.github.pagehelper.PageInfo;
import com.qiche.model.VoucherPackage;
import com.qiche.model.VoucherRepository;

import java.util.List;

/**
 * Created by Linzw on 2018/01/24.
 */
public interface VoucherRepositoryService extends IService<VoucherRepository>{

   PageInfo<VoucherRepository> selectByPage(VoucherRepository repository, int page, int limit);

   List<VoucherRepository> selectByMerchantId(Integer merchantId);

   int updateQuantity(int quantityOld, Integer quantity,Integer id);

   // Agent selectByAccountId(Integer id);
}
